-- GENERATED SPELL FOR [Morgaine the Sly] --


function spell0_99(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(53,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_99', 576, 1)
end

function spell1_99(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(1776,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_99', 4000, 1)
end

function Sorts_99(pUnit, Event)
local choix_sorts_99 = math.random(0, 1)
if choix_sorts_99 == 0 then
pUnit:RegisterEvent('spell0_99', 1, 1)
end
if choix_sorts_99 == 1 then
pUnit:RegisterEvent('spell1_99', 1, 1)
end
end

function mob99_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_99', math.random(1500, 3000), 1)
end

function mob99_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob99_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob99_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(99, 1, 'mob99_Action')
RegisterUnitEvent(99, 2, 'mob99_Leave')
RegisterUnitEvent(99, 3, 'mob99_Kill')
RegisterUnitEvent(99, 4, 'mob99_Die')
